/*
 * <p>Copyright® 2009-2022 东软 IT 实训中心版权所有。</p>
 */

package com.max.back.doctor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.max.back.entity.CheckItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
* @description 
* 
* <p>
* <code>CheckItemDao</code>
*
* </p>
* 
* @see 
* @author 辛凤文 forward.seen@foxmail.com
* @version 1.0 
* @time 2022/7/25 22:31 
*/
@Repository
public interface CheckItemDao extends BaseMapper<CheckItem> {

    @Select({
            "select id,name,part,check_code,result from check_item " +
                    "where check_id = #{checkId}"
    })
    List<Map<String,Object>> selectCheckItemResultsByCheckId(@Param("checkId") String checkId);
}